﻿using BCEntity.CRM.CustomerFollowUpRecord;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BCData.CRM.CustomerFollowUpRecord
{
    public interface ICustomerFollowUpRecordData
    {
        Task<CustomerFollowUpRecordEntity> InsertAsync(CustomerFollowUpRecordEntity  entity);
        Task<CustomerFollowUpRecordEntity> UpdateAsync(CustomerFollowUpRecordEntity entity);
        Task<CustomerFollowUpRecordEntity> GetById(long CustomerFollowUpRecordId);
        Task<(int ccCount, IEnumerable<CustomerFollowUpRecordEntity>)> GetListAsync(int companyId,int pageNo, int pageSize);
        Task<bool> Delete(long id);
        Task<CustomerFollowUpRecordEntity> GetLastRecord(long ccCustomerInfoId);
        Task<(int ccCount, IEnumerable<CustomerFollowUpRecordEntity>)> GetListByCustomerAsync(long ccCustomerInfoId, int ccPageNo, int ccPageSize);
    }
}
